home *** CD-ROM | disk | FTP | other *** search
/ Workbench Design / WB Collection.iso / workbench werkzeuge / icon tools / iconmanager / whatis / include / libraries / whatisbase.h < prev    next >
C/C++ Source or Header  |  1996-04-07  |  2KB  |  53 lines

  1. #ifndef    LIBRARIES_WHATIS_H
  2. #define    LIBRARIES_WHATIS_H    1
  3.  
  4. /*
  5. **    $Filename: libraries/whatisbase.h $
  6. **    $Release: 3
  7. **    $Revision: 2 $
  8. **    $Date: 92/12/13 $
  9. **
  10. **    (C) Copyright 1990,1992 S.R. & P.C.
  11. **        All Rights Reserved
  12. */
  13.  
  14. #include <utility/TagItem.h>
  15.  
  16. /*
  17.  *    After thinking a lot I decided to define a new type, this allow maximum
  18.  *    control by compiler. If you have reason against that, please let me know.
  19.  */
  20.  
  21. typedef ULONG FileType; /* the magic number you get after a WhatIs() */
  22.  
  23. #define TYPE_UNSCANNED 0L    /* we haven't look what is this file */
  24. #define TYPE_UNKNOWNFILETYPE 0x0000FFFE
  25. #define TYPE_UNKNOWNIDSTRING 0xFFFFFFFF
  26. /*
  27.  *    The FileType you get have an internal private format.
  28.  *    Assume anything about it, it can change !
  29.  *    The only thing you can be sure: if == 0L: you didn't call WhatIs (type is Unscanned)
  30.  */
  31.  
  32. /* the 2 scan type actualy possible */
  33. #define LIGHTTYPE    0
  34. #define DEEPTYPE    1
  35.  
  36. /*
  37.  *    Tags for WhatIs():
  38.  *    More information you pass, less whatis.library make mistake.
  39.  *    In DEEP mode whatis.library look for this information if you don't pass to it.
  40.  */
  41. #define WI_FIB        (TAG_USER + 202)    /* TagItem.ti_data = struct FileInfoBlock *FIB, default = NULL */
  42. #define WI_Deep     (TAG_USER + 203)    /* TagItem.ti_data = UBYTE Deep, default = 0 */
  43. #define WI_Buffer    (TAG_USER + 204)    /* TagItem.ti_data = Buffer ptr WARNING: your buffer MUST be NULL terminated */
  44. #define WI_BufLen    (TAG_USER + 205)    /* TagItem.ti_data = Buffer Len */
  45. #define WI_DLX        (TAG_USER + 206)    /* TagItem.ti_data = DLX_numble, found in ArpBase.h */
  46. /* Version 2.1 or higher */
  47. #define WI_DLT         (TAG_USER + 207)    /* TagItem.ti_data = DLT_numble, found in DOS 2.0 */
  48.  
  49. #define WBF_UPDATEFILETYPE 0x01
  50.  
  51. #endif
  52.  
  53.